<?php /* Smarty version Smarty-3.0.5, created on 2015-11-22 19:08:00
         compiled from "D:\WWW\phpcms8\tpl/xiaomi/block_adimages.html" */ ?>
<?php /*%%SmartyHeaderCode:203905651a2105bc971-62930118%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9fa45efe365ed5542e21c12d53204f5fd35fcaff' => 
    array (
      0 => 'D:\\WWW\\phpcms8\\tpl/xiaomi/block_adimages.html',
      1 => 1397983552,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '203905651a2105bc971-62930118',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_smarty_tpl->getVariable('config')->value['adstatus']==1){?>

<script language="javascript">
function initEcAd() {
document.getElementById("AdLayer1").style.posTop = -200;
document.getElementById("AdLayer1").style.visibility = 'visible'
MoveLeftLayer('AdLayer1');
}
function MoveLeftLayer(layerName) {
var x = 5;
var y = 100;// 左侧广告距离页首高度 
var diff = (document.documentElement.scrollTop + y - document.getElementById("AdLayer1").style.posTop)*.40;
var y = document.documentElement.scrollTop + y - diff;
eval("document.getElementById('" + layerName + "').style.posTop = parseInt(y)");
eval("document.getElementById('" + layerName + "').style.posLeft = x");
setTimeout("MoveLeftLayer('AdLayer1');", 10);
}
</script>
<div id="AdLayer1" style='position: absolute;visibility:hidden;z-index:1'>
<a style="width:100px;clear:both;text-align:right;display:block" href="javascript:adcolose();">关闭</a>
<a href='<?php echo $_smarty_tpl->getVariable('config')->value['adlink'];?>
' style="clear:both;"><img src="<?php echo $_smarty_tpl->getVariable('urlpath')->value;?>
<?php echo $_smarty_tpl->getVariable('config')->value['adsyspic'];?>
" alt="Ad" /></a></div>
<script language="javascript">
initEcAd();

function adcolose(){
$("#AdLayer1").hide();
}


</script>

<?php }?>